<template>
  <div id="app">
    <RouterLink to="/">首页</RouterLink>
    <RouterLink to="/login">登录</RouterLink>
    <RouterLink replace to="/register">注册</RouterLink>
    <RouterLink to="/classroom">教室</RouterLink>
    <RouterLink to="/user">用户管理</RouterLink>
    <RouterLink :to="{
      name:'product',
      params:{
        userid:1,
        username:'zs'
      }
    }">商品管理</RouterLink>
    <!-- 路由出口 -->
    <router-view></router-view>
  </div>
</template>

<script>
  import classroom  from '@/views/classroom.vue'
import { RouterLink } from 'vue-router';

export default {
  name: 'App',
  components: {
   classroom
  }
}
</script>

<style >
   

</style>
